<?php

namespace App\Http\Controllers\Api;

use App\Http\Service\UsersInterface;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class UserController extends Controller
{
    //

    private $user;

    public function __construct(UsersInterface $user)
    {
        $this->user = $user;
    }

    public function login(Request $request)
    {
        $data = $request->all();
        return $this->user->login($data);
    }
}
